package com.ycl.plus.lm.hardware.domain.bo;

import com.ycl.plus.lm.hardware.domain.HardwareEquipOperLog;
import com.ycl.plus.lm.common.mybatis.core.domain.BaseEntity;
import com.ycl.plus.lm.common.core.validate.AddGroup;
import com.ycl.plus.lm.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 设备操作日志业务对象 hardware_equip_oper_log
 *
 * @author devil-ycl
 * @date 2024-11-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HardwareEquipOperLog.class, reverseConvertGenerate = false)
public class HardwareEquipOperLogBo extends BaseEntity {

    @NotNull(message = "id不能为空")
    private Long id;

    /**
     * 设备id
     */
    @NotNull(message = "设备id不能为空")
    private Long equipId;

    /**
     * 操作类型
     */
    @NotBlank(message = "操作类型不能为空")
    private String operType;

    /**
     * 操作用户
     */
    @NotNull(message = "操作用户不能为空")
    private Long userId;

    /**
     * 日志等级
     */
    @NotBlank(message = "日志等级不能为空")
    private String operLevel;

    /**
     * 操作时间
     */
    private Date operTime;

    /**
     * 结束时间
     */
    private Date costTime;


}
